import { getValueById } from '@/utils/database'
export const columns = [
  {
    name: 'orderSn',
    label: '订单编号',
    width: 290,
  },
  {
    name: 'orderFrom',
    label: '缴费渠道',
    formatter: (v) => {
      if (v.orderFrom) {
        return getValueById('jiaofeiqudao', v.orderFrom)
      }
    },
  },
  {
    name: 'orderType',
    label: '缴费项目',
    formatter: (v) => {
      if (v.orderType) {
        return getValueById('jiaofeixiangmu', v.orderType)
      }
    },
  },
  {
    name: 'deviceNumber',
    label: '设备编号',
    formatter: (v) => {
      return v?.properties?.deviceId
    },
  },
  {
    name: 'recMobile',
    label: '手机号',
  },

  {
    name: 'priceActual',
    label: '缴费金额',
  },
  {
    name: 'payTime',
    label: '缴费时间',
    width: 200,
  },
  {
    name: 'memo',
    showOverflowTooltip: true,
    label: '备注',
  },
]
